package org.zjvis.datascience.common.config;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

@Configuration
@ConfigurationProperties(prefix = "plugin")
@Data
public class ConfigManager {
    private Map<String, String> config;

    private String token;

    public boolean checkToken(String token) {
        return this.token != null && this.token.equals(token);
    }
}
